#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UTable.Objects.Handlers.Gestures
{
    public class GestureInfo
    {
        public GestureInfo(int id, int userId, String deviceName, List<Contact> contacts)
        {
            Id = id;
            UserId = userId;
            DeviceName = deviceName;
            Contacts = contacts;
            StartType = GestureChangeType.DirectInput;
            EndType = GestureChangeType.ContactRemoved;
        }

        public List<Contact> Contacts { get; set; }

        public int Id { get; private set; }

        public int UserId { get; set; }

        public String DeviceName { get; set; }

        public bool ContinueRecognize { get; set; }

        public GestureChangeType StartType { get; set; }

        public GestureChangeType EndType { get; set; }
    }

    public enum GestureChangeType
    {
        DirectInput,
        ContactAdded,
        ContactRemoved,
    }
}
